package org.bl.chat.model.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.bl.chat.enums.MessageType;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.lang.annotation.Documented;

@Data
@Document
@ApiModel("消息DO")
public class MessageDO {

    @Id
    private String id;
    @ApiModelProperty("消息类型")
    private MessageType type;
    @ApiModelProperty("发送名称")
    private String sender;
    @ApiModelProperty("发送者IP")
    private String senderIp;
    @ApiModelProperty("消息创建时间")
    private String createDate;
    @ApiModelProperty("消息渠道ID")
    private String channelId;
    @ApiModelProperty("消息内容")
    private String content;

}
